package demo06;

import java.util.Scanner;

public class Singleton {
    //private static Singleton instance = new Singleton();
    private static Singleton  instance;
    private Singleton() {
    }

    static {
        instance = new Singleton();
    }

    public static Singleton getInstance(){
        return instance;
    }


}
